package cn.edu.scau.chentingyu.bean;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class DBstudent {
	
	private static Connection connectDatabase() throws ClassNotFoundException, SQLException {
		Class.forName("com.mysql.jdbc.Driver");
		String url = "jdbc:mysql://localhost:3306/jsp";
		String username = "root"; 
		String password = "root"; 
		Connection conn = DriverManager.getConnection(url, username, password);
		return conn;
	}
}
